package nullby.yoga.bo;

import org.json.JSONException;
import org.json.JSONObject;

public class Song {
	private static final String FILENAME = "filename";
	private static final String TITLE = "title";
	private static final String URL = "url";
	private static final String CHECK = "check";

	private String filename;
	private String title;
	private String url;
	private Boolean check;

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Boolean getCheck() {
		return check;
	}

	public void setCheck(Boolean check) {
		this.check = check;
	}

	public Song(String filename, Boolean check, String title, String url) {
		super();
		this.filename = filename;
		this.check = check;
		this.title = title;
	}

	public Song(JSONObject jo) throws JSONException {
		this.filename = jo.getString(FILENAME);
		this.title = jo.getString(TITLE);
		this.url = jo.getString(URL);
		this.check = jo.getBoolean(CHECK);
	}

	public Song(String string) {

	}

}
